package com.mashibing.juc.c_021_02_AQS;

import java.util.concurrent.locks.ReentrantLock;

/**
 * 源码阅读与调试
 * @author: Yuanzt
 * @Date: 2021/3/31
 */
public class TestReentrantLock {

    private volatile static int i = 0;

    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();
        lock.lock();
        i++;
        lock.unlock();
    }

}
